.class Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;
.super Landroid/widget/LinearLayout;
.source "ListItemDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/commonui/ListItemDialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "DialogListItem"
.end annotation


# instance fields
.field private ITEM_HEIGHT:I

.field private mItemIcon:Landroid/widget/ImageView;

.field private mItemText:Landroid/widget/TextView;

.field private mLayout:Landroid/view/ViewGroup;

.field final synthetic this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;


# direct methods
.method public constructor <init>(Lcom/htc/android/footprints/commonui/ListItemDialog;Landroid/content/Context;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V
    .locals 4
    .parameter
    .parameter "context"
    .parameter "text"
    .parameter "drawable"

    .prologue
    .line 134
    iput-object p1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    .line 135
    invoke-direct {p0, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 132
    const/16 v1, 0x30

    iput v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->ITEM_HEIGHT:I

    .line 136
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->setOrientation(I)V

    .line 138
    #calls: Lcom/htc/android/footprints/commonui/ListItemDialog;->isResolutionQVGA()Z
    invoke-static {p1}, Lcom/htc/android/footprints/commonui/ListItemDialog;->access$000(Lcom/htc/android/footprints/commonui/ListItemDialog;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 139
    const/16 v1, 0x22

    iput v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->ITEM_HEIGHT:I

    .line 142
    :cond_0
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "layout_inflater"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 145
    .local v0, inflater:Landroid/view/LayoutInflater;
    const v1, 0x7f030014

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    iput-object v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mLayout:Landroid/view/ViewGroup;

    .line 146
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mLayout:Landroid/view/ViewGroup;

    const/4 v2, -0x2

    iget v3, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->ITEM_HEIGHT:I

    invoke-virtual {p0, v1, v2, v3}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->addView(Landroid/view/View;II)V

    .line 148
    const v1, 0x7f0c0072

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mItemIcon:Landroid/widget/ImageView;

    .line 149
    const v1, 0x7f0c0073

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mItemText:Landroid/widget/TextView;

    .line 151
    if-eqz p4, :cond_2

    .line 152
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mItemIcon:Landroid/widget/ImageView;

    invoke-virtual {v1, p4}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 158
    :goto_0
    if-eqz p3, :cond_1

    .line 159
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mItemText:Landroid/widget/TextView;

    invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 161
    :cond_1
    return-void

    .line 155
    :cond_2
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mItemIcon:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method


# virtual methods
.method public setText(Ljava/lang/String;)V
    .locals 1
    .parameter "title"

    .prologue
    .line 164
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->mItemText:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 165
    return-void
.end method
